#pragma once

#include <QWidget>
#include <QImage>
#include "ui_picture.h"

class Picture : public QWidget
{
	Q_OBJECT

public:
	Picture(QWidget *parent = Q_NULLPTR, QImage image = QImage(), QString rr = "", int tt = 0);
	~Picture();
	QString get_title();
	QImage get_image();

private:
	Ui::Picture ui;
	QImage img;
	QString reason;
	int snaptime;

private slots:
	void show_picture();

signals:
	void show_list_pic(Picture *pic);
};
